// src/main/java/com/macro/mall/tiny/modules/oms/dto/OrderQueryParam.java
package com.macro.mall.tiny.modules.oms.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "订单查询参数")
public class OrderQueryParam {

    @Schema(description = "用户token")
    private String token;

    @Schema(description = "顾客ID")
    private Integer userId;

    @Schema(description = "顾客名称")
    private String userName;

    @Schema(description = "商品SKU ID")
    private Integer skuId;

    @Schema(description = "商品SKU Code")
    private Integer skuCode;

    @Schema(description = "属性值")
    private String pvValue;

    @Schema(description = "订单状态")
    private Integer orderStatus;

    @Schema(description = "时间开始")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeStart;

    @Schema(description = "时间结束")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeEnd;

    @Schema(description = "页码")
    private Integer pageNum = 1;

    @Schema(description = "每页数量")
    private Integer pageSize = 10;

    // 可以根据需要继续添加其他查询参数
}